package com.example.trader.mapper;


import com.example.trader.entity.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProductManagerMapper {

     public List<Product> getProductList();

     int addProduct(@Param("product") Product product);

     int deleteProduct(@Param("id") Integer id);

     int editProductInfo(@Param("product") Product product);

     List<Product> getProductByName(@Param("productName") String productName);
}
